#ifndef _STOP_WATCH_H
#define _STOP_WATCH_H


#include <sys/time.h>
#include <string.h>
#include <stdio.h>



using namespace std;


class StopWatch
{
	public:
		StopWatch();
		~StopWatch();
		void init();
		void start();
		void stop();
		void clear();
		int readDays();
		int readHours();
		int readMinutes();
		int readSeconds();
		int readmSeconds();
		void timeString(char *buf);
	private:
		double sw_start, sw_stop, total;
		timeval sw_tvstruct;
};

#endif
